﻿<?php
if(!defined('IN_PHPSCUP'))exit('hacking'); 
class CacheApp extends BaseApp
{
    function index()
    {
		
		 $this->cache();		
		 $notice = &get_message(array('msg'=>'Success!','url'=>'','title'=>'Notice'));
		 $notice ->display();
		 
    }


    function cache()
    {
         
		 $cache_dir = array(ROOT_PATH . '/temp/caches',ROOT_PATH . '/temp/compiled',);
		 foreach($cache_dir as $key => $value)
		 {
			          if(file_exists($value))
		              {
		               del_file($value);	
		              }			 	  	 
		 }

    }	

	
}



?>